<?php namespace Home\Controller; 

use Hdphp\Controller\Controller;

//前台首页控制器
class IndexController extends Controller{
    private $model;
	//构造函数
	public function __init(){
        $this->model = new \Common\Model\Goods;
	}
	
    /**
     * [index 商品展示页面]
     * [goods下面的pic数据]
     * @return [type] [description]
     */
    public function index(){
        $data = $this->model->get();//人气单品的数据
        // p($data); 
        $this->assign('data',$data);
    	$this->display();
    }
}
